A generic approach for the unranking of labeled combinatorial classes
نویسندگان
چکیده
In this article, we design and analyze algorithms that solve the unranking problem (i.e., generating a combinatorial structure of size, n given its rank) for a large collection of labeled combinatorial classes, those that can be built using operators like unions (+), products ( ), sequences, sets, cycles, and substitutions. We also analyze the performance of these algorithms and show that the worst-case is n2 ( n log n if the so-called boustrophedonic order is used), and provide an algebra for the analysis of the average performance and higher-order moments together with a few examples of its application. © 2001 John Wiley & Sons, Inc. Random Struct. Alg., 00, 1–26, 2001
منابع مشابه
Efficient iteration in admissible combinatorial classes
The exhaustive generation of combinatorial objects has a vast range of practical applications and is a common theme in the combinatorial research field. But most previous works in this area concentrate in the efficient generation of particular families of combinatorial objects. The novel approach of the work presented here is to provide efficient generic algorithms, where the input is not just ...
متن کاملUnranking Algorithms for Combinatorial Structures
We present an implementation of some unlabeled and labeled unranking algorithms for the open-source algebraic combinatorics package MUPAD-COMBINAT of the computer algebra system MUPAD. We have compared our implementation with the previous versions. All our algorithms improve the previous ones with respect to the required CPU time. Moreover, we have also developed unranking algorithms applied to...
متن کاملAlgorithms for Unranking Combinations and Other Related Choice Functions
In this report new unranking algorithms are developed for a large class of choice functions representing various classes of combinatorial objects: combinations, complementary combinations, conjugative nondecreasing choice functions, ordered partitions. Presented algorithms differ with the type of lexicographical order they deal with and the method of binomial coefficient evaluation. The proofs ...
متن کاملUnranking Combinations in Parallel
In this report a parallel algorithm is presented for unranking k out of n set subsets. The computations run in a specialized architecture that combines some systolic and some associative features. The algorithm has O(k) time complexity and can be applied in specialized systems for parallel adaptive generation of the set of all combinations, its ordered subsets and any random sequences. This pro...
متن کاملRanking Catamorphisms and Unranking Anamorphisms on Hereditarily Finite Datatypes
Using specializations of unfold and fold on a generic tree data type we derive unranking and ranking functions providing natural number encodings for various Hereditarily Finite datatypes. In this context, we interpret unranking operations as instances of a generic anamorphism and ranking operations as instances of the corresponding catamorphism. Starting with Ackerman’s Encoding from Hereditar...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Random Struct. Algorithms
دوره 19 شماره
صفحات -
تاریخ انتشار 2001